<div id="ajaxloadhtml">
	<script type="text/javascript" >
		var pageHeight = window.innerHeight; 
		if(typeof pageWidth != "number"){ 
			if(document.compatMode == "number"){
				pageHeight = document.documentElement.clientHeight+113; 
			}else{ 
				pageHeight = document.body.clientHeight+113; 
			}
		}
		$(function(){
			$("[ajaxaction]").live('click',function(){
				var tiltle=$(this).attr("title");
				var action=$(this).attr("ajaxaction");
				if($(this).attr("ax")){
					$("#TB_window").css("marginLeft",0-parseInt($(this).attr("ax")));
				}
				if($(this).attr("ay")){
					$("#TB_window").css("marginTop",parseInt($(this).attr("ay")));
				}
				if($(this).attr("aw")){
					$("#TB_window").css("width",parseInt($(this).attr("aw")));
				}

				$("#back_filter,.ajaxloadhtml").css("height",pageHeight);
				$(".load_body").html("<div style=\"text-align:center;padding-top:30px;\"><img src=\"__IMG__/loadingAnimation.gif\" /></div>");	//
				$(".load_body").load("__URL__/"+action);
				$("#TB_ajaxWindowTitle").html(tiltle);
				$(".ajaxloadhtml").show();
				return false;
			});
			$(".closeload").live("click",function(){
				$("#TB_window").css({marginLeft:"-247px",marginTop:"-220px",width:"495px"})
				$(".load_body").html("");
				$(".ajaxloadhtml").hide();
			});
		});
		document.onkeyup = function(e){ 	
			if (e == null) { // ie
				keycode = event.keyCode;
			} else { // mozilla
				keycode = e.which;
			}
			if(keycode == 27){ // close
				$("#TB_window").css({marginLeft:"-247px",marginTop:"-220px",width:"495px"})
				$(".load_body").html("");
				$(".ajaxloadhtml").hide();
			}	
		};
	</script>		
	<div class="ajaxloadhtml" style="position:absolute;top:0;left:0;width:100%;height:100%;display:none;">
		<div style="position:absolute;z-index:100;width:100%;height:100%;background:#000;FILTER: alpha(opacity=20);opacity:0.8;" id="back_filter" class="closeload" ></div>
		<div id="TB_window" style="margin-left:-247px;margin-top:-220px;width:495px;display: block;">
			<div id="TB_title">
				<div id="TB_ajaxWindowTitle"></div>
				<div id="TB_closeAjaxWindow"><b><a class="closeload" onclick="return false;" >Close</a></b> or Esc Key</div>
			</div>
			<div class="load_body"></div>
		</div>	
	</div>
</div>